package com.shf.controller;

import com.shf.domain.ResponseResult;
import com.shf.service.UploadService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.xml.ws.Response;

/**头像上传
 * @author 叶枫
 * @date 2023/11/10.
 */
@Api(tags = "头像上传接口")
@RestController
public class UploadController {
    @Autowired
    private UploadService uploadService;
    @PostMapping("/upload")
    public ResponseResult upload(MultipartFile img){
        return uploadService.upload(img);
    }
}
